<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCatsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cats', function (Blueprint $table) {
            $table->integer('cat_id')->comment('栏目id');
            $table->string('cat_name')->comment('栏目名称');
            $table->string('cat_intro')->comment('栏目简介');
            $table->integer('parent_id')->comment('父栏目id');
            //$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //Schema::drop('cats');
    }
}
